#include <REGX52.H>
#include <intrins.h>
typedef unsigned char uchar;
typedef unsigned int uint;

void delay_ms(unsigned char m)
{
	uint x;
	uint y;
	for(x=0;x<m;x++)
	{
		for(y=0;y<120;y++)
		{
		}
	}

}

void main()
{
	uchar led1 = 0xfe;
	while(1)
	{
		P2 = led1;
		delay_ms(1000);
		led1 = _crol_(led1,1);
	}

}
